<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Binh
 * Date: 1/5/14
 * Time: 7:18 PM
 * To change this template use File | Settings | File Templates.
 */
?>

<h3>Admin Panel Login</h3>

<form action="<?php echo Uri::create('login/error'); ?>" method="post">
    <fieldset>
        <dl>
            <dt><label>Username:</label></dt>
            <dt><input type="text" name="user_name" size="54" /></dt>
        </dl>
        <dl>
            <dt><label>Password:</label></dt>
            <dt><input type="password" name="password" size="54" /></dt>
        </dl>
        <dl class="submit">
            <input type="submit" name="submit" value="Enter" />
        </dl>
        <dl>
            <?php
            if(isset($error)){
                echo "<h1>".$error."</h1>";
            }
            ?>
        </dl>
    </fieldset>
</form>